﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace _14EFCore学习;

[Table("T_Cats")]
public class Cat
{
    public long ID { get; set; }
    [Required]
    [MaxLength(50)]
    public string Name { get; set; }

    [NotMapped]
    public int  Age { get; set; }
}